package cn.huapu.power.energy.controller;


import cn.huapu.power.energy.bean.vo.DeviceDisVo;
import cn.huapu.power.energy.service.TransformerbaseinfotService;
import cn.huapu.power.energy.vo.Ret;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * @author shenyu
 * @Description
 * @create 2020-1-13
 */
@RestController
@RequestMapping(value = "/transformer/data")
public class TransformerDataController {

    @Autowired
    private TransformerbaseinfotService transformerbaseinfotService;

    /**
     * 变压器分布
     *
     * @param
     * @return cn.huapu.power.core.vo.Ret
     * @throws
     * @date 2020-1-13 15:08
     */
    @RequestMapping("/transDis")
    public Ret transDis(@RequestParam Integer clientId) {
        Ret ret = new Ret();
        List<DeviceDisVo> list = transformerbaseinfotService.transDis(clientId);
        ret.OK(list);
        return ret;
    }

}
